 package com.coc.util;
 
 import java.io.IOException;
 import javax.servlet.Filter;
 import javax.servlet.FilterChain;
 import javax.servlet.FilterConfig;
 import javax.servlet.ServletContext;
 import javax.servlet.ServletException;
 import javax.servlet.ServletRequest;
 import javax.servlet.ServletResponse;
 import javax.servlet.http.HttpServletRequest;
 
 public class EncodingFilter
   implements Filter
 {
   private FilterConfig filterConfig;
 
   public void init(FilterConfig filterConfig)
     throws ServletException
   {
     this.filterConfig = filterConfig;
   }
 
   public void doFilter(ServletRequest srequest, ServletResponse sresponse, FilterChain chain) throws IOException, ServletException
   {
     try
     {
       HttpServletRequest request = (HttpServletRequest)srequest;
       request.setCharacterEncoding("UTF-8");
       chain.doFilter(srequest, sresponse);
     } catch (ServletException sx) {
       this.filterConfig.getServletContext().log(sx.getMessage());
     } catch (IOException iox) {
       this.filterConfig.getServletContext().log(iox.getMessage());
     }
   }
 
   public void destroy() { this.filterConfig = null; }
 
 }

/* Location:           C:\Work\WorkSpace\classes\
 * Qualified Name:     com.coc.util.EncodingFilter
 * JD-Core Version:    0.6.2
 */